include ../Makefile.inc

$(OBJ_DIR)/socket.o : socket.cpp socket.h
	-mkdir -p $(OBJ_DIR)
	-mkdir -p $(INCLUDE_DIR)/tcetools
	-cp -f socket.h $(INCLUDE_DIR)/tcetools/
	$(CXX) $(INCLUDES) $< -c -o $@

clean:
	rm -f objs/*.o
	rm -f $(INCLUDE_DIR)/tcetools/socket.h

lib: $(OBJ_DIR)/socket.o
	ar rsc $(TOOLS_LIB_FILE) $(OBJ_DIR)/socket.o